package com.guigui.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigui.common.utils.PageUtils;
import com.guigui.gulimall.product.entity.CategoryEntity;
import com.guigui.gulimall.product.vo.web.CatalogListWebVo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xin
 * @email 806748502@qq.com
 * @date 2021-07-23 14:10:32
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listAsTree();

    void removeCategoryByIds(List<Long> asList);

    /**
     * 返回前端视图各级分类视图，按照1-2-3级分类
     * @return
     */
    Map<String, List<CatalogListWebVo>> getCatalogJson();

    /**
     * 获取一级分类数据
     */
    List<CategoryEntity> getCatalogLevelOne();

    /**
     * 修改菜单
     */
    void updateByCategory(CategoryEntity category);
}

